//
//  networkTools.m
//  QWwyNews
//
//  Created by Amisear on 15/10/2.
//  Copyright © 2015年 Amisear. All rights reserved.
//

#import "networkTools.h"

@implementation networkTools

+ (instancetype)sharedNetWorkTools {
    
    static networkTools *instance;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        NSURL *Base = [NSURL URLWithString:@"http://c.m.163.com/nc/article/headline/"];
        
        instance = [[self alloc]initWithBaseURL:Base];
        //添加响应解析的数据格式
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil];
        
    });
    
    return instance;
}

@end
